
#ifndef USE_MULTI_MUTEX_BETTER_

#define USE_MULTI_MUTEX_BETTER_

#pragma once
#include <cstdint>
#include <mutex>

using namespace std;

class UseMultiMutexBetter
{
public:
	UseMultiMutexBetter();
	~UseMultiMutexBetter();

	void inc();
	uint64_t get_count();

private:
	static uint64_t count;

	static mutex m1;
	static mutex m2;
};

#endif USE_MULTI_MUTEX_BETTER_

